package com.bjsxt.feign;

import com.bjsxt.config.feign.OAuth2FeignConfig;
import com.bjsxt.dto.CoinDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description:
 * @ClassName: CoinServiceFeign
 * @Author: chenyu
 * @Date: 2025/3/19 15:49
 */
@FeignClient(name = "finance-service", contextId = "finance-api",
        configuration = OAuth2FeignConfig.class, path="/coins")
public interface CoinServiceFeign {

    @RequestMapping("/list")
    public List<CoinDto> findCoins(@RequestParam(name = "coinIds") List<Long> coinIds);
}
